<?php

/**
 * @author Edson5
 * @copyright 2011
 */

//echo $_GET['codigo'];
$ruta=$_SERVER['DOCUMENT_ROOT']."/viventura/MDHoteles";
$ruta2=$_SERVER['DOCUMENT_ROOT']."/viventura";
$codigo=$_GET['codtrack'];
$codtour=$_GET['codtour'];
$codtourtrack=$_GET['ctotra'];


include_once("$ruta/conf/CConfig.php");
include_once("$ruta/elements/head2.tpl");

include_once("$ruta2/view/CDrawMenu.php");
include_once("$ruta2/view/CDrawPage.php");
include_once("$ruta/view/CDrawHotel.php");
include_once("$ruta2/view/CDrawPageReg.php");
$instance=new CDrawHotel();
echo "<table cellspacing ='0' id='widget_table'>";
echo "<tr>";

$instance->CDraw_td_Widget2($codigo,$codtour,$codtourtrack);

echo "</tr>";
echo "</table>";

include_once("$ruta/elements/foot.tpl");
?>
<script>
$(document).ready(function()
{
    setTimeout("ReloadPage()",100000);
});
</script>
<script type="text/javascript">
function enviar(id)
{	$(document).ready(function() {
    var ids=id;
    //alert(ids);
    var codt=$('#codtour'+ids).val();
    var codtt=$('#codtourtrack'+ids).val();
    var cod=$('#cod'+ids).val();
    //alert(cod);
    var sim=$('#simple'+ids).val();
    var doble=$('#Doble'+ids).val();
    var matrimonial=$('#Matrimonial'+ids).val();
    var check1=0,check2=0;
    if ($("#conf"+ids).is(":checked")) {
        check1=1;
			}
   if($('#envi'+ids).is(":checked"))
   {
            check2=1;
    
   }
   
   window.location="<?php echo CConfig::getInstance()->rutalocal?>/view/Save.php?codigo="+cod+"&si="+sim+
   "&do="+doble+"&ma="+matrimonial+"&c1="+check1+"&c2="+check2+"&ct="+codt+"&ctt="+codtt;
    
    
    })
}
</script>

